package com.xqboss.apps.domain.consumer;

import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.xqboss.apps.enums.consumer.InteractMsgEnum;
import lombok.Data;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;

/**
 * 互动消息表
 *
 * @author wangcong
 * @date 2023-08-31
 */
@Data
@ApiModel("互动消息表")
public class ConsumerInteractMsg implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId
    @ApiModelProperty("主键")
    private Long id;

    @ApiModelProperty("用户id")
    private Long userId;

    @ApiModelProperty("标题")
    private String title;

    @ApiModelProperty("内容")
    private String content;

    @ApiModelProperty("源id")
    private Long sourceId;

    @ApiModelProperty("状态 0_未读,1_已读")
    private Integer status;

    @ApiModelProperty("消息类型 好友（0申请添加,1同意,2拒绝）队伍（3申请加入,4邀请加入,5同意加入,6拒绝加入,7退出队伍,8管理员变更,9增益结算,10点赞,11送爱心,12提现打卡,13打卡成功）打卡（14即将打卡）")
    private InteractMsgEnum type;

    @ApiModelProperty("是否需要触达 0_否,1_是")
    private Integer needReach;

    @ApiModelProperty("是否已触达 0_否,1_是")
    private Integer isReach;

    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;

    private LocalDateTime updateTime;

    @TableLogic
    @ApiModelProperty("删除标记")
    private Boolean delFlag;


}